<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>唐僧智能租房-管理登录</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/static/css/login.css" media="all" />
</head>
<body onload="loadTopWindow()">
	<video class="video-player" preload="auto" autoplay="autoplay" loop="loop" data-height="1080" data-width="1920" height="1080" width="1920">
	    <source src="/static/image/login.mp4" type="video/mp4">
	</video>
	<div class="video_mask"></div>
	<div class="login">
	    <h1>唐僧智能租房-管理登录</h1>
	    <form class="layui-form" action="/admin/login" method="post">
	    	<div class="layui-form-item">
				<input class="layui-input" name="username" placeholder="用户名" lay-verify="required" type="text" autocomplete="off">
		    </div>
		    <div class="layui-form-item">
				<input class="layui-input" name="password" placeholder="密码" lay-verify="required" type="password" autocomplete="off">
		    </div>
		    <div class="layui-form-item form_code">
				<input class="layui-input" name="code" placeholder="验证码" lay-verify="required" type="text" autocomplete="off">
				<div class="code"><img src="/kaptcha" id="kaptchaImage" width="116" height="36" title="看不清，点击换一张" onclick="changeVerifyCode()"></div>
		    </div>
			<#--<p id="errortag" hidden>${Request['error']!'成功'}</p>-->
			<button id="btnsubmit" type="submit" class="layui-btn login_btn" lay-submit >登录</button>
		</form>
	</div>
	<script type="text/javascript" src="/static/layui/layui.js"></script>
	<script type="text/javascript" src="/static/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="/static/js/admin/login.js"></script>
    <script type="text/javascript">
        function changeVerifyCode() {
            var time=new Date().getTime();
            document.getElementById("kaptchaImage").src="/kaptcha?d="+time;//为了不让验证码缓存，为了安全起见，需要次次都刷新
        }
        //判断当前窗口是否有顶级窗口，如果有就让当前的窗口的地址栏发生变化，
        function loadTopWindow(){
            if (window.top!=null && window.top.document.URL!=document.URL){
                window.top.location= document.URL; //这样就可以让登陆窗口显示在整个窗口了
            }
        }
	</script>
</body>
</html>